package models

import "time"

type Stock struct {
	StockID int64 `json:"stockID,string" db:"stock_id"`
	DrugID  int64 `json:"drugID,string" db:"drug_id"`
	Number  int32 `json:"number,string" db:"number"`
	Drug    Drug  `json:"drug"`
}

type StockHistory struct {
	StockID      int64     `json:"stockID,string" db:"stock_id"`
	DrugID       int64     `json:"drugID,string" db:"drug_id"`
	OperateID    int       `json:"operateID,string" db:"operate_id"`
	Number       int32     `json:"number,string" db:"number"`
	UpdateTime   time.Time `json:"updateTime" db:"update_time"`
	UserID       int64     `json:"userID,string" db:"user_id"`
	User         `json:"user" db:"user"`
	Drug         `json:"drug" db:"drug"`
	ParamOperate `json:"operate" db:"operate"`
}
